//
//  NSObject+HDChatListModel.m
//  app
//
//  Created by D on 15/5/18.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "HDChatListModel.h"

@implementation HDChatListModel

-(instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        
        self.face = dict[@"face"];
        self.name = dict[@"nickname"];
        self.time = dict[@"dateline"];
        self.lastTalk = dict[@"content"];
        self.pmid = dict[@"pmid"];
        self.uid = dict[@"uid"];
        self.msgid = dict[@"msgid"];
        self.f_face = dict[@"f_face"];
        self.f_name = dict[@"f_nickname"];
        self.fuid = dict[@"fuid"];
        
        
        
        if ([dict[@"delSign"]length] > 0 ) {
            self.delSign = dict[@"delSign"];
        }else
        {
            self.delSign = @"000";
        }
    }
    return self;

}

+(instancetype)modelWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

@end
